//
//  FBVideoListModel.m
//  MusicForChilden
//
//  Created by qlydfb on 2021/10/28.
//

#import "FBVideoListModel.h"
static NSString *list = @"https://webbff.qingting.fm/www";
@implementation FBVideoListDetailMode


@end
@implementation FBVideoListModel

+(void)getVoiceListIndex:(NSInteger)pageNo andSuccess:(void(^)(NSArray *listArr,NSInteger total))success faile:(void(^)(NSError *error))fail{
    
    NSString *query = [NSString stringWithFormat:@"{channelPage(cid:418090,page:%ld,order:\"asc\",qtId:\"null\"){\n        album\n        seo\n        plist\n        reclist\n        categoryId\n        categoryName\n        collectionKeywords\n      }\n    }",pageNo];
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:2];
    params[@"query"] = query;
    
    [QLYDNetWork POST:list Parameters:params Success:^(id  _Nonnull responseObject) {
        NSLog(@"responseObject= %@",responseObject);
        FBVideoListModel *model = [[FBVideoListModel alloc]initWithDictionary:responseObject[@"data"][@"channelPage"] error:nil];
        success(model.plist,[model.program_count integerValue]);
    } Fail:^(NSError * _Nonnull error) {
        NSLog(@"responseObject= %@",error);
;
    }];
    
}
@end
